<?php

// 定义要遍历的目录
$directory = new DirectoryIterator(dirname(__FILE__) . '/layui');

// 遍历目录并打印信息
foreach ($directory as $fileinfo) {
    if ($fileinfo->isDot()) {
        continue;
    }
    echo $fileinfo->getBasename('.' . $fileinfo->getExtension()) . "\n";
}
